//===============================================================================
// Microsoft Architecture Strategy Team
// LitwareHR - SaaS Sample Application
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================


using System;
using System.Collections.Generic;
using System.Text;

namespace ConfigurationWizard.Validation
{
    public abstract class DependencyBase
    {
        private string dependencyType;
        private string dependency;
        private bool enabled;
        private string title;
        private bool optional;
        private string explanation;
        private string downloadUrl;
        private string scriptName;
        private bool succeeded;
        private bool matchwholeword;

        public abstract bool Check();

        public bool Evaluate()
        {
            this.succeeded = Check();
            return this.succeeded;
        }

        public string DependencyType
        {
            get { return this.dependencyType; }
            set { this.dependencyType = value; }
        }

        public string Dependency
        {
            get { return this.dependency; }
            set { this.dependency = value; }
        }

        public bool MatchWholeWord
        {
            get { return this.matchwholeword; }
            set { this.matchwholeword = value; }
        }

        public bool Enabled
        {
            get { return this.enabled; }
            set { this.enabled = value; }
        }

        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }

        public bool Optional
        {
            get { return this.optional; }
            set { this.optional = value; }
        }

        public string Explanation
        {
            get { return this.explanation; }
            set { explanation = value; }
        }

        public string ScriptName
        {
            get { return this.scriptName; }
            set { this.scriptName = value; }
        }

        public string DownloadUrl
        {
            get { return this.downloadUrl; }
            set { this.downloadUrl = value; }
        }

        public bool Succeeded
        {
            get 
            {
                return succeeded;
            }
        }
    }
}
